
<div class="fui-page fui-page-current"  style="background:#fff">
	
	<div class="fui-content order-list">
		<div class="fui-tab-scroll">
			<div class='container type-2'>
				<span ng-class="{'item':1, 'on':pagedata.op =='main'}" ng-click="access_json('main')">我的关注</span>
				<span ng-class="{'item':1, 'on':pagedata.op =='fans'}" ng-click="access_json('fans')">我的粉丝</span>
			</div>
		</div>
		<div ng-if="pagedata.op =='main'" class="fui-cell-group fui-comment-group">	
				<div class="fui-cell">
					<div class="fui-cell-h3" ng-if="pagedata.op =='main'">{{pagedata.msgnum || 0}}关注</div>
					<div class="fui-cell-h3" ng-if="pagedata.op =='fans'">{{pagedata.fansnum || 0}}个粉丝</div>
				</div>
				<div ng-repeat="m in pagedata.list" class="fui-cell fui-cell-click noborder">
					<div href="javascript:;" ng-click="access_json('jy_vote/user_opus/main/mid='+m.userid)" class="fui-cell-icon" style="width:46px;margin-top:-10px"><img class="img-circle" ng-src="{{tomedia(m.member.avatar) || '../core/resource/images/gw-user.png'}}" style="width:46px;height:46px" /></div>
					<div class="fui-cell-text desc">
						<div class="fui-cell noborder" style="padding:0.25rem">
							<div class="fui-cell-text" style="color:#f60">{{m.member.nickname || '匿名用户'}}</div>
							<div class="fui-cell-text r" ng-if="m.isfollowtoo==1 || pagedata.op =='main'"><span class="jylabel jylabel-red">已关注</span></div>
							<div class="fui-cell-text r" ng-if="pagedata.op =='fans' && m.isfollowtoo!=1"><span class="jylabel jylabel-red active" href="javascript;" ng-click="pagedata.setfollow(m.mid);m.isfollowtoo=1">关注</span></div>
						</div>
						<div href="javascript:;" ng-click="access_json('jy_vote/user_opus/main/mid='+m.userid)" class="fui-cell noborder padding03" style="padding:0.25rem;padding-top:0">
							<div class="fui-cell-text" style="color:#000">
								{{m.member.desc || '小伙伴很懒，没有描述！'}}
							</div>
						</div>
						<div href="javascript:;" ng-click="access_json('jy_vote/user_opus/main/mid='+m.userid)" class="fui-cell noborder padding03" style="padding:0.25rem">
							<div class="fui-cell-text" style="font-size:0.5rem">
								粉丝数：{{m.fansnums || 0}} 
							</div>
						</div>
					</div>
				</div>
		</div>
		<div ng-if="pagedata.op =='fans'" class="fui-cell-group fui-comment-group">	
				<div class="fui-cell">
					<div class="fui-cell-h3" ng-if="pagedata.op =='main'">{{pagedata.msgnum || 0}}关注</div>
					<div class="fui-cell-h3" ng-if="pagedata.op =='fans'">{{pagedata.fansnum || 0}}个粉丝</div>
				</div>
				<div ng-repeat="m in pagedata.list" class="fui-cell fui-cell-click noborder">
					<div href="javascript:;" ng-click="access_json('jy_vote/user_opus/main/mid='+m.mid)" class="fui-cell-icon" style="width:46px;margin-top:-10px"><img class="img-circle" ng-src="{{tomedia(m.member.avatar) || '../core/resource/images/gw-user.png'}}" style="width:46px;height:46px" /></div>
					<div class="fui-cell-text desc">
						<div class="fui-cell noborder" style="padding:0.25rem">
							<div class="fui-cell-text" style="color:#f60">{{m.member.nickname || '匿名用户'}}</div>
							<div class="fui-cell-text r" ng-if="m.isfollowtoo==1 || pagedata.op =='main'"><span class="jylabel jylabel-red">已关注</span></div>
							<div class="fui-cell-text r" ng-if="pagedata.op =='fans' && m.isfollowtoo!=1"><span class="jylabel jylabel-red active" href="javascript;" ng-click="pagedata.setfollow(m.mid);m.isfollowtoo=1">关注</span></div>
						</div>
						<div href="javascript:;" ng-click="access_json('jy_vote/user_opus/main/mid='+m.mid)" class="fui-cell noborder padding03" style="padding:0.25rem;padding-top:0">
							<div class="fui-cell-text" style="color:#000">
								{{m.member.desc || '小伙伴很懒，没有描述！'}}
							</div>
						</div>
						<div href="javascript:;" ng-click="access_json('jy_vote/user_opus/main/mid='+m.mid)" class="fui-cell noborder padding03" style="padding:0.25rem">
							<div class="fui-cell-text" style="font-size:0.5rem">
								粉丝数：{{m.fansnums || 0}} 
							</div>
						</div>
					</div>
				</div>
		</div>
		<div ng-show="loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
//获取关注
scope.pagedata.setfollow=function(mid){
	var params={
		data:{'mid':mid},
		op:'follow',
		callback:function(res){
			console.log(res);
			scope.message('成功关注！');
			scope.$evalAsync();
		}
	};
	scope.post_json(params);
}
</script>